/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ez430;

/**
 *
 * @author georg
 */
public class Watch {
    private Port port;

    public Watch(Port port){
        this.port = port;
    }
    public byte[] SendAndReceive(Message msg, int delay) throws Exception{
        port.send(msg);
        Thread.sleep(delay);
        byte[] packet = port.receive();
        //System.out.print(Util.getHexStringFromBytes(packet));
        
        return packet;
    }
}
